package com.authine.cloudpivot.web.api.service.impl;

import com.authine.cloudpivot.web.api.dao.UserMapper;
import com.authine.cloudpivot.web.api.service.UserService;
import com.authine.cloudpivot.web.api.vo.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public String selectById(String userId) {
        return userMapper.selectById(userId);
    }

    @Override
    public void update(String userId,String password) {
        userMapper.update(password,userId);
    }
}
